package com.lzy.util;

import com.lzy.shiro.AccountPfofile;
import org.apache.shiro.SecurityUtils;

/**
 * @autor shkstart
 * @create 2021-01-15 16:13)
 */
public class ShiroUtil {
    public static AccountPfofile getProfile(){
        System.out.println(SecurityUtils.getSubject());
        return (AccountPfofile) SecurityUtils.getSubject().getPrincipal();
    }
}
